@charset "utf-8";
@import "./spinner/dots.css";
@import "./spinner/gauge.css";
@import "./spinner/inner-circles.css";
@import "./spinner/plus.css";
@import "variables";

@base-loading-type: tl-loading-type;
/* 自定义loading开始 */
.@{base-loading-type}1 {
    display: flex;
    width: 36px;
    height: 36px;
    margin: 0 auto 15px;
    border: 3px solid transparent;
    border-top-color: @base-color-blue;
    border-bottom-color: @base-color-blue;
    border-radius: 50%;
    animation: tl-loading1-0 0.8s linear infinite;
}

.@{base-loading-type}1::before {
    display: block;
    width: 8px;
    height: 8px;
    margin: auto;
    content: "";
    border: 3px solid @base-color-blue;
    border-radius: 50%;
    animation: tl-loading1 0.5s alternate ease-in infinite;
}

@keyframes tl-loading1-0 {
    to {
        transform: rotate(360deg);
    }
}

@keyframes tl-loading1 {
    from {
        transform: scale(0.5);
    }

    to {
        transform: scale(1.2);
    }
}

.@{base-loading-type}2 {
    width: 20px;
    height: 20px;
    margin-top: -40px;
    margin-left: -10px;
    animation: tl-loading2 1s linear reverse infinite;
}

.@{base-loading-type}2::before {
    display: block;
    width: 36px;
    height: 36px;
    margin-top: -17px;
    margin-left: -18px;
    content: "";
    animation: tl-loading2 0.4s linear infinite;
}

.@{base-loading-type}2::after {
    display: block;
    width: 8px;
    height: 8px;
    margin-top: -3px;
    margin-left: -4px;
    content: "";
    animation: tl-loading2 0.4s linear infinite;
}

.@{base-loading-type}2::before,
.@{base-loading-type}2,
.@{base-loading-type}2::after {
    position: absolute;
    top: 40%;
    left: 50%;
    border: 3px solid transparent;
    border-top-color: @base-color-blue;
    border-right-color: @base-color-blue;
    border-radius: 50%;
}

@keyframes tl-loading2 {
    to {
        transform: rotate(360deg);
    }
}

.@{base-loading-type}3 {
    display: inline-block;
    width: 2.5em;
    height: 3em;
    margin-bottom: 15px;
    border: 3px solid transparent;
    border-top-color: @base-color-blue;
    border-bottom-color: @base-color-blue;
    border-radius: 50%;
    animation: tl-loading3 2s ease infinite;
}

@keyframes tl-loading3 {
    50% {
        border-width: 8px;
        transform: rotate(360deg) scale(0.4, 0.33);
    }

    100% {
        border-width: 3px;
        transform: rotate(720deg) scale(1, 1);
    }
}

.@{base-loading-type}4 {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin: 0 auto 10px;
    border: 8px solid transparent;
    border-bottom-color: @base-color-blue;
    border-left-color: @base-color-blue;
    border-radius: 50%;
    animation: tl-loading4 1s linear infinite normal;
}

.@{base-loading-type}4::after {
    display: block;
    width: 15px;
    height: 15px;
    margin: 0;
    content: " ";
    border: 6px solid @base-color-blue;
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-radius: 50%;
}

@keyframes tl-loading4 {
    0% {
        opacity: 0.2;
        transform: rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: rotate(180deg);
    }

    100% {
        opacity: 0.2;
        transform: rotate(360deg);
    }
}

.@{base-loading-type}5 {
    display: block;
    width: 0;
    height: 0;
    margin: 0 auto 15px;
    border: solid 1.5em @base-color-blue;
    border-right: solid 1.5em transparent;
    border-left: solid 1.5em transparent;
    border-radius: 100%;
    animation: tl-loading5 1s linear infinite;
}

@keyframes tl-loading5 {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(60deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.@{base-loading-type}6 {
    display: block;
    width: 0;
    height: 0;
    margin: 0 auto 25px auto;
    perspective: 200px;
}

.@{base-loading-type}6::before,
.@{base-loading-type}6::after {
    position: absolute;
    width: 20px;
    height: 20px;
    content: "";
    background: rgba(0, 0, 0, 0);
    animation: tl-loading6 0.5s infinite alternate;
}

.@{base-loading-type}6::before {
    left: 0;
}

.@{base-loading-type}6::after {
    right: 0;
    animation-delay: 0.15s;
}

@keyframes tl-loading6 {
    0% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
        transform: scale(1) translateY(0) rotateX(0deg);
    }

    100% {
        background: @base-color-blue;
        box-shadow: 0 25px 40px rgba(@base-color-blue, 0.5);
        transform: scale(1.2) translateY(-25px) rotateX(45deg);
    }
}

.@{base-loading-type}7 {
    display: block;
    width: 25px;
    height: 25px;
    margin: 0 auto 15px auto;
    border: 2px solid @base-color-blue;
    border-top-color: rgba(@base-color-blue, 0.2);
    border-right-color: rgba(@base-color-blue, 0.2);
    border-bottom-color: rgba(@base-color-blue, 0.2);
    border-radius: 100%;
    animation: tl-loading7 infinite 0.75s linear;
}

@keyframes tl-loading7 {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

.@{base-loading-type}8 {
    position: relative;
    box-sizing: border-box;
    display: block;
    width: 20px;
    height: 20px;
    margin: 0 auto 15px auto;
    background-color: @base-color-blue;
    border-radius: 50%;
    box-shadow: 30px 0 0 0 @base-color-blue;
    transform: translateX(-15px);
}

.@{base-loading-type}8::after {
    position: absolute;
    top: 8px;
    left: 9px;
    width: 10px;
    height: 10px;
    content: "";
    background-color: @base-color-white;
    border-radius: 50%;
    box-shadow: 30px 0 0 0 @base-color-white;
    animation: tl-loading8 2s ease-in-out infinite alternate;
}

@keyframes tl-loading8 {
    0% {
        left: 9px;
    }

    100% {
        left: 1px;
    }
}

.@{base-loading-type}9 {
    position: relative;
    box-sizing: border-box;
    display: block;
    width: 20px;
    height: 20px;
    margin: 0 auto 15px auto;
    border: 1px @base-color-blue solid;
    animation: tl-loading9 5s linear infinite;
}

.@{base-loading-type}9::after {
    position: absolute;
    top: -8px;
    left: 0;
    width: 4px;
    height: 4px;
    content: "";
    background-color: @base-color-blue;
    animation: tl-loading9_check 1s ease-in-out infinite;
}

@keyframes tl-loading9_check {
    25% {
        top: -8px;
        left: 22px;
    }

    50% {
        top: 22px;
        left: 22px;
    }

    75% {
        top: 22px;
        left: -9px;
    }

    100% {
        top: -7px;
        left: -9px;
    }
}

@keyframes tl-loading9 {
    0% {
        box-shadow: inset 0 0 0 0 rgba(@base-color-blue, 0.5);
        opacity: 0.5;
    }

    100% {
        box-shadow: inset 0 -20px 0 0 @base-color-blue;
    }
}

/* 自定义loading结束 */